﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using IMDBApi.Contracts;
using IMDBApi.Contracts.Entities;
using IMDBApi.Contracts.Entities.Features;

namespace IMDBApi.Tests.UnitTest
{
    [TestClass]
    public class UnitTestFeatures
    {
        [TestMethod]
        public void TestIMDBFullCredits()
        {
            string json = new IMDBFeatures().GetTop250Movies();
            TopMovies topMovies = JSONSerializer.Deserialize<TopMovies>(json);

            Assert.IsNotNull(topMovies.Data);
        }
    }
}
